﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000159 RID: 345
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BuildAreaStep : IMessage<BuildAreaStep>, IMessage, IEquatable<BuildAreaStep>, IDeepCloneable<BuildAreaStep>, IBufferMessage
	{
		// Token: 0x170004A4 RID: 1188
		// (get) Token: 0x06000FAC RID: 4012 RVA: 0x0002E551 File Offset: 0x0002C751
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BuildAreaStep> Parser
		{
			get
			{
				return BuildAreaStep._parser;
			}
		}

		// Token: 0x170004A5 RID: 1189
		// (get) Token: 0x06000FAD RID: 4013 RVA: 0x0002E558 File Offset: 0x0002C758
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BuildAreaStepReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170004A6 RID: 1190
		// (get) Token: 0x06000FAE RID: 4014 RVA: 0x0002E56A File Offset: 0x0002C76A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BuildAreaStep.Descriptor;
			}
		}

		// Token: 0x06000FAF RID: 4015 RVA: 0x0002E571 File Offset: 0x0002C771
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuildAreaStep()
		{
		}

		// Token: 0x06000FB0 RID: 4016 RVA: 0x0002E579 File Offset: 0x0002C779
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuildAreaStep(BuildAreaStep other) : this()
		{
			this.status_ = other.status_;
			this.stepId_ = other.stepId_;
			this.mJALJMGLEFP_ = other.mJALJMGLEFP_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000FB1 RID: 4017 RVA: 0x0002E5B6 File Offset: 0x0002C7B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuildAreaStep Clone()
		{
			return new BuildAreaStep(this);
		}

		// Token: 0x170004A7 RID: 1191
		// (get) Token: 0x06000FB2 RID: 4018 RVA: 0x0002E5BE File Offset: 0x0002C7BE
		// (set) Token: 0x06000FB3 RID: 4019 RVA: 0x0002E5C6 File Offset: 0x0002C7C6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BuildGoalStep Status
		{
			get
			{
				return this.status_;
			}
			set
			{
				this.status_ = value;
			}
		}

		// Token: 0x170004A8 RID: 1192
		// (get) Token: 0x06000FB4 RID: 4020 RVA: 0x0002E5CF File Offset: 0x0002C7CF
		// (set) Token: 0x06000FB5 RID: 4021 RVA: 0x0002E5D7 File Offset: 0x0002C7D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint StepId
		{
			get
			{
				return this.stepId_;
			}
			set
			{
				this.stepId_ = value;
			}
		}

		// Token: 0x170004A9 RID: 1193
		// (get) Token: 0x06000FB6 RID: 4022 RVA: 0x0002E5E0 File Offset: 0x0002C7E0
		// (set) Token: 0x06000FB7 RID: 4023 RVA: 0x0002E5E8 File Offset: 0x0002C7E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MJALJMGLEFP
		{
			get
			{
				return this.mJALJMGLEFP_;
			}
			set
			{
				this.mJALJMGLEFP_ = value;
			}
		}

		// Token: 0x06000FB8 RID: 4024 RVA: 0x0002E5F1 File Offset: 0x0002C7F1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BuildAreaStep);
		}

		// Token: 0x06000FB9 RID: 4025 RVA: 0x0002E600 File Offset: 0x0002C800
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BuildAreaStep other)
		{
			return other != null && (other == this || (this.Status == other.Status && this.StepId == other.StepId && this.MJALJMGLEFP == other.MJALJMGLEFP && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000FBA RID: 4026 RVA: 0x0002E65C File Offset: 0x0002C85C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Status != BuildGoalStep.None)
			{
				num ^= this.Status.GetHashCode();
			}
			if (this.StepId != 0U)
			{
				num ^= this.StepId.GetHashCode();
			}
			if (this.MJALJMGLEFP != 0U)
			{
				num ^= this.MJALJMGLEFP.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000FBB RID: 4027 RVA: 0x0002E6D3 File Offset: 0x0002C8D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000FBC RID: 4028 RVA: 0x0002E6DB File Offset: 0x0002C8DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000FBD RID: 4029 RVA: 0x0002E6E4 File Offset: 0x0002C8E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.StepId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.StepId);
			}
			if (this.MJALJMGLEFP != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.MJALJMGLEFP);
			}
			if (this.Status != BuildGoalStep.None)
			{
				output.WriteRawTag(88);
				output.WriteEnum((int)this.Status);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000FBE RID: 4030 RVA: 0x0002E758 File Offset: 0x0002C958
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Status != BuildGoalStep.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Status);
			}
			if (this.StepId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.StepId);
			}
			if (this.MJALJMGLEFP != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MJALJMGLEFP);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000FBF RID: 4031 RVA: 0x0002E7C8 File Offset: 0x0002C9C8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BuildAreaStep other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Status != BuildGoalStep.None)
			{
				this.Status = other.Status;
			}
			if (other.StepId != 0U)
			{
				this.StepId = other.StepId;
			}
			if (other.MJALJMGLEFP != 0U)
			{
				this.MJALJMGLEFP = other.MJALJMGLEFP;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000FC0 RID: 4032 RVA: 0x0002E82C File Offset: 0x0002CA2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000FC1 RID: 4033 RVA: 0x0002E838 File Offset: 0x0002CA38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 56U)
					{
						if (num != 88U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Status = (BuildGoalStep)input.ReadEnum();
						}
					}
					else
					{
						this.MJALJMGLEFP = input.ReadUInt32();
					}
				}
				else
				{
					this.StepId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040006AB RID: 1707
		private static readonly MessageParser<BuildAreaStep> _parser = new MessageParser<BuildAreaStep>(() => new BuildAreaStep());

		// Token: 0x040006AC RID: 1708
		private UnknownFieldSet _unknownFields;

		// Token: 0x040006AD RID: 1709
		public const int StatusFieldNumber = 11;

		// Token: 0x040006AE RID: 1710
		private BuildGoalStep status_;

		// Token: 0x040006AF RID: 1711
		public const int StepIdFieldNumber = 1;

		// Token: 0x040006B0 RID: 1712
		private uint stepId_;

		// Token: 0x040006B1 RID: 1713
		public const int MJALJMGLEFPFieldNumber = 7;

		// Token: 0x040006B2 RID: 1714
		private uint mJALJMGLEFP_;
	}
}
